package com.bootdo.common.task;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Component;

import com.bootdo.hjh.service.PointsService;
import com.bootdo.oa.domain.Response;

@Component
public class AgentBonusJob implements Job{

	private static final Logger LOGGER = LoggerFactory.getLogger(AgentBonusJob.class);

	@Autowired
	SimpMessagingTemplate template;
	@Autowired
	private PointsService pointsService;
    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
//		pointsService.agentBonus();
//		pointsService.agent2Bonus();
//		pointsService.agent3Bonus();
//		pointsService.agent4Bonus();
//		pointsService.agent5Bonus();
//		LOGGER.info("团队奖分红跑批结束");
//    		template.convertAndSend("/topic/getResponse", new Response("佣金计算完成" ));

    }

}
